package com.explorati.design_pattern.behavior.strategy;

/**
 * 环境角色：该角色也叫上下文角色，起到承上启下的作用，屏蔽高层模块对策略、算法的直接访问， 
 * 它持有一个Strategy类的引用
 * 
 * @author explorati
 *
 */
public class PromotionActivity {

	private PromotionStrategy promotionStrategy;

	public PromotionActivity(PromotionStrategy promotionStrategy) {
		this.promotionStrategy = promotionStrategy;
	}

	public void executePromotionStrategy() {
		promotionStrategy.doPromotion();
	}

}
